package com.universest.swordholder.ui.activity
import android.os.Bundle
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.imePadding
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Scaffold
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.lifecycle.viewmodel.compose.viewModel
import com.universest.swordholder.ui.screen.PassageEditorScreen
import com.universest.swordholder.ui.theme.SwordHolderTheme
import com.universest.swordholder.viewmodel.intentViewModel

/**
 * 文章编辑界面。
 * @author universt
 */
class PassageEditActivity : BaseActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
    }

    @Composable
    override fun ActivityContentScreen(modifier: Modifier) {
        PassageEditorScreen(
            modifier = modifier,
            viewModel = intentViewModel(intent)
        )
    }
}